package com.youmu.maven.emall.service;

import java.util.Set;

import com.github.pagehelper.Page;
import com.youmu.maven.emall.entity.Permission;

public interface IPermissionService {

	Page<Permission> queryPermission(Permission permission, int page, int rows);

	void updatePermission(Permission permission);

	Long insertPermission(Permission permission);

	void deletePermissionById(Long id);

	Set<Permission> queryPermissionByRoleId(Long roleId);

	Set<Permission> queryPermissionByMenuId(Long menuId);

}
